package com.gtw.modules.sys.service;

import com.gtw.modules.entity.TbCommissionRatio;

import java.util.List;
import java.util.Map;

/**
 * 抽佣比例
 * 
 * @author wuye
 * @email www.baidu.com
 * @date 2018-04-03 17:45:17
 */
public interface SysCommissionRatioService {
	
	TbCommissionRatio queryObject(Integer id);
	
	List<TbCommissionRatio> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TbCommissionRatio commissionRatio);
	
	void update(TbCommissionRatio commissionRatio);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	/**
	 * 查询会员抽佣首购比例
	 * @return
	 */
	TbCommissionRatio queryByUserFisrt();

	/**
	 * 查询会员抽佣复购比例
	 * @return
	 */
	TbCommissionRatio queryByUserOld();

	/**
	 * 查询代理抽佣比例
	 * @return
	 */
	TbCommissionRatio queryByProxy();
}
